The xml:base attribute, resolved with the manifest's xml:base attribute, of the resources node, if it exists. Otherwise returns null.
Parent Type: ManifestReader
Namespace: Microsoft.LearningComponents.Manifest
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public Uri ResourcesXmlBase { get; } |
| Exception type | Condition |
| InvalidPackageException | The provided attribute is not valid, or there are more than one <resources> node, and |
If the attribute is provided in the manifest but is not valid and ManifestReaderSettings.FixScormRequirementViolations=true was set for this object, an empty Uri is returned.
Example: if the <manifest> has xml:base="http://foo/" and the <resources> has xml:base="bar/", this returns "http://foo/bar/". If the <resources> has xml:base="http://bar/", this returns "http://bar/" regardless of the <manifest> xml:base value. If the <resources> has no xml:base, this returns the <manifest> xml:base, in this case, "http://foo/".